#!/bin/bash
echo "Removing sticky bits"
chmod -s -R /media/vtape/*
echo "Opening permissions."
chmod -R 777 /media/vtape/*
read -p "Press any key to remove Apple Metadata files."
find /media/vtape -name '.AppleDouble' -exec rm -rf {} \;
find /media/vtape -name '.Parent' -exec rm -f {} \;
find /media/vtape -name '.DS_Store' -exec rm -f {} \;
read -p "Press any key to verify removal."
find /media/vtape -name '.AppleDouble' -print
find /media/vtape -name '.AppleDouble' -print
find /media/vtape -name '.AppleDouble' -print
exit 0